package arithmetic;

public class RecursionExample {
    public static void recursiveFunction(int n) {
        if (n <= 0) {
            return;
        }
        System.out.println("Before recursive call: " + n);
        recursiveFunction(n - 1);
        System.out.println("After recursive call: " + n);
    }

    public static void main(String[] args) {
        recursiveFunction(3);
    }
}